/*
 * @Descripttion: 
 * @version: 
 * @Author: zhaomangang
 * @Date: 2024-06-30 15:56:15
 * @LastEditors: zhaomangang
 * @LastEditTime: 2024-06-30 16:06:36
 */
#ifndef MAIN_WIDGET_H
#define MAIN_WIDGET_H

#include <QWidget>
#include <QPushButton>
#include <QTimerEvent>
#include <QtTextToSpeech>
#include "speech_recognition.h"
class MainWidget : public QWidget
{
    Q_OBJECT

public:
    MainWidget(QWidget *parent = nullptr);
    ~MainWidget();

protected:
    /* 重写定时器事件 */
    void timerEvent(QTimerEvent* event);


public slots:
    void slotButtonStartClicked();
    void slotButtonStopClicked();

private:
    SpeechRecognition* speech_recognition_;
    QPushButton* button_start_;
    QPushButton* button_stop_;
};
#endif // MAIN_WIDGET_H
